<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			var i = 1;
			var sum = 0;
			while(i <= 50) {
				if(i % 7 == 0) {
					sum = sum + i;
				}
				i++;
			}
			alert(sum);
		</script>
	</body>

</html>